﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DaInterFace
{
    public interface IEncrypt
    {
        /// <summary>
        /// 对称秘钥加密
        /// </summary>
        /// <param name="encryptString">待加密的字符串</param>
        /// <param name="encryptKey">加密密钥,要求为8位 </param>
        /// <returns></returns>
        String AESEncrypt(string encryptString);
        /// <summary>
        /// 对称秘钥解密
        /// </summary>
        /// <param name="encryptString">待解密的字符串</param>
        /// <param name="encryptKey">加密密钥,要求为8位 </param>
        /// <returns></returns>
        String AESDecrypt(string decryptString);

        /// <summary>
        /// 非对称秘钥解密
        /// </summary>
        /// <param name="encryptString">待解密的字符串</param>
        /// <param name="privateKey">解密私钥</param>
        /// <returns></returns>
        //string RsaDecrypt(string encryptString, string privateKey);
    }
}
